import request from '@/utils/request'
//  获取审核人列表
export function GetAuditPeopleList(params) {
  return request({
    url: '/cloudApi/sys/flow/getAuditorList',
    method: 'get',
    params
  })
}

//  获取节点列表
export function GetAuditPointList(params) {
  return request({
    url: '/cloudApi/sys/flow/getNodeList',
    method: 'get',
    params
  })
}

//  获取节点下的所有成员的列表
export function GetAuditPointPeopleList(params) {
  return request({
    url: '/cloudApi/sys/user/getSelectList',
    method: 'get',
    params
  })
}

// 添加审核人
export function AddAuditPeople(data) {
    return request({
        url: '/cloudApi/sys/flow/addAuditor',
        method: 'post',
        data
    })
}

// 删除审核人
export function RemoveAuditPeople(data) {
    return request({
        url: '/cloudApi/sys/flow/removeAuditor',
        method: 'post',
        data
    })
}

